//
//  CarDetailPriceCell.m
//  New_Runway
//
//  Created by mack on 2018/1/25.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import "CarDetailPriceCell.h"
@interface CarDetailPriceCell ()
@property (weak, nonatomic) IBOutlet UILabel *priceone;
@property (weak, nonatomic) IBOutlet UILabel *priceTwo;
@property (weak, nonatomic) IBOutlet UILabel *priceThree;

@property (weak, nonatomic) IBOutlet UILabel *titleOne;
@property (weak, nonatomic) IBOutlet UILabel *titleTwo;
@property (weak, nonatomic) IBOutlet UILabel *titleThree;

@end

@implementation CarDetailPriceCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setCarInfo:(CarResult *)carInfo{
    
    _carInfo = carInfo;
    self.priceone.text = [NSString stringWithFormat:@"%.1f万",(CGFloat)_carInfo. carGuidePrice];
    //是否包含过户费
    if (_carInfo.carTransferState == 0) {
        self.priceTwo.text = @"不含过户费";
        
    }else{
        self.priceTwo.text = @"含过户费";
        
    }
    self.titleOne.text = @"新车指导价";
    if (_carInfo.carFixedPriceState == 0) {
        self.titleTwo.text = @"不是一口价";
    }else{
        self.titleTwo.text = @"一口价";
    }

    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
